package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.system.entity.SysOrderDetails;
import io.geekidea.springbootplus.system.vo.SysOrderDetailsQueryVo;

import java.math.BigDecimal;
import java.util.List;

public interface SysOrderDetailsService extends BaseService<SysOrderDetails> {
    //根据id查找订单性情
    SysOrderDetailsQueryVo selectOrderDetailsById(Integer id) throws Exception;
    //根据订单id查找订单详情
    List<SysOrderDetailsQueryVo> selectOrderDetailsByOrderId(Long orderId) throws Exception;
    //单个删除订单详情
    boolean deleteOrderDetails(Long id) throws Exception;
    //根据商品名称查找订单详情
    List<SysOrderDetailsQueryVo> selectOrderDetailsByProductName(String productName) throws Exception;
    //根据商品价格查找商品
    List<SysOrderDetailsQueryVo> selectProductNameByProductPrice(BigDecimal productPrice) throws Exception;
}
